/// @description Insert description here
// You can write your code in this editor
if(!keyPressed)
{
	titleVisible = min(1, titleVisible + 0.01);
}
else
{
	titleVisible = max(0, titleVisible - 0.01);
	slotVisible = min(1, slotVisible + 0.01);
}
//按键切换存档
if(keyboard_check_pressed(ord("W"))) || (keyboard_check_pressed(vk_up))
{
	slotSelect--;
	if(slotSelect < 0) slotSelect = 2;
}
if(keyboard_check_pressed(ord("S"))) || (keyboard_check_pressed(vk_down))
{
	slotSelect++;
	if(slotSelect > 2) slotSelect = 0;
}
if( (keyboard_check_pressed(vk_space)) || (keyboard_check_pressed(vk_enter)) ) && (keyPressed) && (!isGameLoading)
{
	if(!LoadGame(slotSelect))//如果读取不到存档
	{
		RoomTransition(TRANS_TYPE.SLIDE, rVillage);	//直接开启新游戏
	}
	isGameLoading = true;//用来保证加载时不能再按键触发读取存档
}

if(keyboard_check_pressed(vk_anykey)) keyPressed = true;
